package cn.qiyu5522.tk_ems.entity.dto;

import cn.qiyu5522.tk_ems.entity.JobCategory;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.entity.dto
 * @ClassName: JobCategoryDTO
 * @Author: [Toneky]
 * @Date: 2023/2/23 16:37
 * @Version: V1.0
 **/
@Data
@ApiModel("工作类别DTO对象")
public class JobCategoryDTO {
    @ApiModelProperty(value = "岗位编号")
    @NotNull(message = "岗位编号不能为空",groups = {JobCategory.Update.class})
    private Integer id;
    @ApiModelProperty(value = "岗位父级编号")
    private Integer pid;
    @ApiModelProperty(value = "岗位名称")
    @NotNull(message = "岗位名称不能为空",groups = {JobCategory.Update.class,JobCategory.Insert.class})
    private String name;
}
